package com.wuage.application;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wuage.domain.model.UacDictionary;
import com.wuage.interfaces.account.domain.DictionaryPageDO;
import com.wuage.interfaces.dictionary.domain.UacDictionaryDO;

import java.util.List;

/**
 * @author Shynin
 * @version 1.0
 * @date 2020-09-21 16:15
 */
public interface IUacDictionaryService extends IService<UacDictionary> {
    Boolean create(String type, String target);

    List<UacDictionary> getAllByAccount(Integer type, Boolean isSystem);

    Boolean deleteByAccount(Long id);

    UacDictionary getById(Long id);

    /**
     * 分页条件查询当前租户下的字典
     *
     * @param pageDO   分页及查询条件
     * @param tenantId 租户Id
     * @return 字典信息
     */
    Page<UacDictionary> getByClassification(DictionaryPageDO pageDO, Long tenantId);

    Boolean deleteById(Long id);

    Boolean addDictionary(UacDictionaryDO uacDictionaryDO);
}
